﻿namespace swe.Core
{
	public static class StateMachine
	{
		private static readonly StateResult BreakSingle = StateResult.Create( StateResult.BreakFlow );
		private static readonly StateResult LoopSingle = StateResult.Create(StateResult.LoopCurrentState);

		public static StateResult Break { get { return BreakSingle; } }
		public static StateResult Loop { get { return LoopSingle; } }

		public static StateResult NamedState(string state)
		{
			return StateResult.NamedState(state);
		}
	}
}
